package com.songlanyun.modules.freighttemplate.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.songlanyun.common.drive.IBaseService;
import com.songlanyun.common.utils.PageUtils;
import com.songlanyun.modules.freighttemplate.entity.FreightTemplate;
import com.songlanyun.modules.freighttemplate.model.dto.FreightTemplateDTO;
import com.songlanyun.modules.freighttemplate.model.vo.FreightSlim;

import java.util.List;
import java.util.Map;

/**
 * 商家的物流模板表
 *
 * @author lubo
 * @email sunlightcs@gmail.com
 * @date 2020-11-09 18:03:39
 */
public interface FreightTemplateService extends IBaseService<Integer, FreightTemplate>  {

    FreightTemplate add(Long shopId, FreightTemplateDTO dto);
    FreightTemplate update(Long shopId, FreightTemplateDTO dto);
    FreightTemplate getFTemplateBy(Long shopId, Integer id);
    void delete(Long shopId,Integer id);

    void setDefault(Long shopId,Integer id);

    List<FreightTemplate> all(Long shopId);

    List<FreightSlim> slimList(Long shopId);

    FreightTemplate getFTemplateDefaultBy(Long shopId);

    FreightTemplate getFreeTemplate(Long shopId);
}


